﻿using System;

namespace Glue.Converters
{
    internal class ByteStringConverter:GlueDefaultConverter<byte, String>
    {
        internal override string InternalMapTowardsRight(byte from)
        {
            return from.ToString();
        }

        internal override byte InternalMapTowardsLeft(string from)
        {
            return Convert.ToByte(from);
        }
    }
}
